require "Common.event"
require "Common.event_type"

module("EVTM",package.seeall)
local eventDispatcher = EventDispatcher.new()

--添加侦听
function add(eventType,listener,owner)
	eventDispatcher:Add(eventType,listener,owner)
end
--移除侦听
function remove(eventType,listener, owner)
	eventDispatcher:Remove(eventType,listener, owner)
end

function removeAll(eventType)
	eventDispatcher:removeAllEventListener(eventType)
end

function dispatch(eventType,data)
	eventDispatcher:Dispatch(eventType,data)
end

function dump()
	eventDispatcher:Dump()
end